#include "StdAfx.h"

Agreement::Agreement()
{
	return;
	m_dialog = new Dialog(sD3D.GetSize().x / 2 - 240, sD3D.GetSize().y / 2 - 240, 15, 15, "Agreement", false);
	m_dialog->AddButton(this, 160, 70, "I agree", &Agreement::OKButton, 440, 25);
	m_dialog->AddButton(this, 250, 70, "I dont agree", &Agreement::CancelButton, 440, 25);
	m_dialog->AddText(30, 40, "In the following text you will find some basic rules that get");
	m_dialog->AddText(30, 55, "applied to the useage of this program. If you like to run the");
	m_dialog->AddText(30, 70, "program you need to accept those rules. Of course you can");
	m_dialog->AddText(30, 85, "decline the rules. But then you are not allowed to use the");
	m_dialog->AddText(30, 100, "program anymore.");
	m_dialog->AddText(30, 130, "    1. Everything you create with this program is still");
	m_dialog->AddText(30, 145, "       the property of Blizzard Entertainment. You do not");
	m_dialog->AddText(30, 160, "       have the slightest bit of copyright on the output.");
	m_dialog->AddText(30, 190, "    2. You agree that you wont use this program to");
	m_dialog->AddText(30, 205, "       perform any changes on the client that harm");
	m_dialog->AddText(30, 220, "       either Blizzard Entertainment or any player.");
	m_dialog->AddText(30, 235, "       The program contains checks that you cannot edit");
	m_dialog->AddText(30, 250, "       battlegrounds or arenagrounds. Bypassing those");
	m_dialog->AddText(30, 265, "       checks is illegal.");
	m_dialog->AddText(30, 295, "    3. You confirm that you have a official, working,");
	m_dialog->AddText(30, 310, "       active and unbanned account for the official");
	m_dialog->AddText(30, 325, "       servers of Blizzard Entertainment.");
	//m_dialog->AddText(30, 355, "    4. The fact mentioned in point 3 gets verified by");
	//m_dialog->AddText(30, 370, "       technical concepts. Any bypass to that checks is");
	//m_dialog->AddText(30, 385, "       illegal.");
	m_dialog->AddText(30, 355, "    4. You use this program for educational purposes only.");
	//sUI.AddElement(m_dialog);
}

void Agreement::OKButton(UIButton<Agreement>*)
{
	m_dialog->m_visible = false;
	sD3D.SetAppState(STATE_MENU);
}

void Agreement::CancelButton(UIButton<Agreement>*)
{
	sWindow.Destroy();
}